/*
 * @Author: shenya
 * @Date: 2023-11-07 12:36:16
 * @Description:昵称
 */
import request from '@/router/axios';
//查询
export function fetchList(params) {
  return request({
    url: '/app/user/nickname/page',
    method: 'get',
    params,
  });
}
//新增
export function insertNickName(data) {
  return request({
    url: '/app/user/nickname',
    method: 'post',
    data,
  });
}
//编辑
export function editNickName(data) {
  return request({
    url: '/app/user/nickname/update',
    method: 'post',
    data,
  });
}
//删除
export function deleteNickName(id) {
  return request({
    url: `/app/user/nickname/disable/${id}`,
    method: 'get',
  });
}
//批量导入
export function importName(data) {
  return request({
    url: '/app/user/nickname/import',
    method: 'post',
    data,
  });
}
